package com.carlosk.kandicar.net;

import java.util.HashMap;
import java.util.Map;

import com.carlosk.kandicar.domain.ThreadMessage;

/**
 * @author carlos carlosk@163.com
 * @version 创建时间：2012-9-30 上午6:08:45 类说明 http相关的内容封装
 */

public class HttpEntity {
	public static enum HttpType {
		GET, POST, PUT
	}

	private Map<String, String> paramMap = new HashMap<String, String>();// 形参

	public HttpEntity() {
		super();
		this.httpType = HttpType.POST;
	}

	private HttpType httpType;
	private String url;
	private ThreadMessage threadMessage;

	public ThreadMessage getThreadMessage() {
		return threadMessage;
	}

	public void setThreadMessage(ThreadMessage threadMessage) {
		this.threadMessage = threadMessage;
	}

	public HttpType getHttpType() {
		return httpType;
	}

	public void setHttpType(HttpType httpType) {
		this.httpType = httpType;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Map<String, String> getParamMap() {
		return paramMap;
	}

	public void setParamMap(Map<String, String> paramMap) {
		this.paramMap = paramMap;
	}

	// private
}
